package com.heatingcharge.service.unit;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.heatingcharge.dto.ResZoneDTO;
import com.heatingcharge.entity.unit.ResZone;
import com.heatingcharge.param.ResZoneParam;
import com.heatingcharge.param.ZoneTreeParam;
import com.heatingcharge.vo.TreeVo;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 小区  服务类
 * </p>
 *
 * @author devin.jiang
 * @since 2019-07-12
 */
public interface IResZoneService extends IService<ResZone> {
    IPage<ResZone> selectZonePage(Page page, ResZoneDTO resZoneDTO);

    List<ResZone> selectZone(ResZoneDTO resZoneDTO);

    List<TreeVo> selectZoneTree(ZoneTreeParam zonTreeParam);

    boolean save(ResZoneParam resZoneParam);

    boolean update(ResZoneParam resZoneParam);

    @Override
    boolean removeById(Serializable id);
}
